package com.huike.stock_analysis.dao;

import javax.annotation.Resource;

import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;



/**
 * 
 * @author mzLEI
 *测试数据库连接池
 */
@Repository
public class Test {
	@Resource
	JdbcTemplate jdbcTemplate;
	
	public  void query(String username, String password) {
		String sql = "INSERT INTO `ads_user` (`email`,`username`, `password`) VALUES ("+"'2925478428@qq.com','"+username+"', '"+password+"')";
		System.out.println(sql);
		jdbcTemplate.update(sql);
	}
	

}
